package com.guilin.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.guilin.common.annotation.Excel;
import com.guilin.common.core.domain.BaseEntity;

/**
 * 问卷对象 survey_questionnaire
 *
 * @author xiaoqi
 * @date 2025-06-24
 */
public class SurveyQuestionnaire extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 问卷名称 */
    @Excel(name = "问卷名称")
    private String questionnaireName;

    /** 时长(分钟) */
    @Excel(name = "时长(分钟)")
    private Long duration;

    /** 结束语 */
    @Excel(name = "结束语")
    private String closingMessage;

    /** 问卷状态(0-草稿,1-发布,2-结束) */
    @Excel(name = "问卷状态(0-草稿,1-发布,2-结束)")
    private Long status;

    /** 开始时间（问卷生效时间） */
    @Excel(name = "开始时间", readConverterExp = "问=卷生效时间")
    private Date startTime;

    /** 问卷结束时间（自动/手动设置） */
    @Excel(name = "问卷结束时间", readConverterExp = "自=动/手动设置")
    private Date endTime;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setQuestionnaireName(String questionnaireName)
    {
        this.questionnaireName = questionnaireName;
    }

    public String getQuestionnaireName()
    {
        return questionnaireName;
    }

    public void setDuration(Long duration)
    {
        this.duration = duration;
    }

    public Long getDuration()
    {
        return duration;
    }

    public void setClosingMessage(String closingMessage)
    {
        this.closingMessage = closingMessage;
    }

    public String getClosingMessage()
    {
        return closingMessage;
    }

    public void setStatus(Long status)
    {
        this.status = status;
    }

    public Long getStatus()
    {
        return status;
    }

    public void setStartTime(Date startTime)
    {
        this.startTime = startTime;
    }

    public Date getStartTime()
    {
        return startTime;
    }

    public void setEndTime(Date endTime)
    {
        this.endTime = endTime;
    }

    public Date getEndTime()
    {
        return endTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("questionnaireName", getQuestionnaireName())
                .append("duration", getDuration())
                .append("closingMessage", getClosingMessage())
                .append("status", getStatus())
                .append("startTime", getStartTime())
                .append("endTime", getEndTime())
                .toString();
    }
}
